package team.bluepen.supermarket.data.entity;

import team.bluepen.supermarket.data.dao.BytesConverter;
import team.bluepen.supermarket.data.dao.abstraction.Buildable;

/**
 * 用于多条件查询
 * @author Kai
 */
public class Qualify implements Buildable<Qualify> {
    private String family;
    private String qualifier;
    private Object value;
    private BytesConverter bytesConverter;

    public Qualify(){}

    public Qualify(String family, String qualifier,
                   Object value, BytesConverter bytesConverter) {
        this.family = family;
        this.qualifier = qualifier;
        this.value = value;
        this.bytesConverter = bytesConverter;
    }

    public String getFamily() {
        return family;
    }

    public Qualify setFamily(String family) {
        this.family = family;
        return this;
    }

    public String getQualifier() {
        return qualifier;
    }

    public Qualify setQualifier(String qualifier) {
        this.qualifier = qualifier;
        return this;
    }

    public Object getValue() {
        return value;
    }

    public Qualify setValue(Object value) {
        this.value = value;
        return this;
    }

    public BytesConverter getBytesConverter() {
        return bytesConverter;
    }

    public Qualify setBytesConverter(BytesConverter bytesConverter) {
        this.bytesConverter = bytesConverter;
        return this;
    }

    @Override
    public Qualify build() {
        return this;
    }
}
